target("main")
    set_kind("binary")
    add_files("main.cpp") 
    add_files("version.rc")
target_end()

target("dll")
    set_kind("shared")
    add_files("dll.cpp")
    after_build(
        function(t)
            print(t:basename())
            print(t:targetfile())
            for i = 1,10,1 do
                -- print(i)
                os.cp( path.join( t:targetdir(), t:basename()..".dll"), path.join( t:targetdir(), t:basename()..i..".dll"))
            end
        end
    )
target_end()